<?php
session_start();
session_destroy(); 
function location($url="#"){echo "<script> document.location.href=\"$url\"; </script>";}
location("index.php");
?>